﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System.Windows.Forms;
using System.Configuration;

namespace TSPquestEDITOR
{
    public partial class basic_info : Form
    {
        //Program Variables:
        public static string multi_quest_search_name { get; set; }
        public static string multi_quest_search_return_id { get; set; }
        public string connectionString { get; set; }
        public Int32 fin_qID { get; set; }
        private BackgroundWorker bgw;
        private BackgroundWorker preload_worker;
        SqlDataAdapter adapter = new SqlDataAdapter();
        public DataSet item_list = new DataSet();
        public DataSet item_list1;
        public DataSet item_list2;
        public DataSet item_list3;
        public DataSet item_list4;
        public DataSet monster_list = new DataSet();
        public DataSet skill_list = new DataSet();
        public DataSet monster_list2;
        public DataSet skill_list2;
        public DataSet monster_list3;
        public DataSet skill_list3;
        //Quest Specific Variables:
        public Int32 quest_id_val { get; set; }
        public Int32 quest_name_id_val { get; set; }
        public string quest_name_val { get; set; }
        public Int32 quest_level_req_val { get; set; }
        public Int32 quest_limit_job_lv_val { get; set; }
        public Int32 quest_limit_max_lv_val { get; set; }
        public Int32 quest_time_type_val { get; set; }
        public Int32 quest_time_limit_val { get; set; }
        public string quest_type_internal_reference {get; set;}
        public string quest_type_val { get; set; }
        public Int32 quest_value1_val { get; set; }
        public Int32 quest_value2_val { get; set; }
        public Int32 quest_value3_val { get; set; }
        public Int32 quest_value4_val { get; set; }
        public Int32 quest_value5_val { get; set; }
        public Int64 quest_exp_val { get; set; }
        public Int32 quest_jp_val { get; set; }
        public Int32 quest_gold_val { get; set; }
        public Int32 quest_holicpoint_val { get; set; }
        public Int32 quest_start_npc_id_val { get; set; }
        public Int32 quest_start_npc_2_id_val { get; set; }
        public Int32 quest_start_npc_3_id_val { get; set; }
        public Int32 quest_end_npc_id_val { get; set; }
        public Int32 quest_start_npc_title_id_val { get; set; }
        public string quest_start_npc_title_val { get; set; }
        public Int32 quest_start_npc_2_title_id_val { get; set; }
        public string quest_start_npc_2_title_val { get; set; }
        public Int32 quest_start_npc_3_title_id_val { get; set; }
        public string quest_start_npc_3_title_val { get; set; }
        public Int32 quest_end_npc_title_id_val { get; set; }
        public string quest_end_npc_title_val { get; set; }
        public Int32 quest_start_npc_name_id_val { get; set; }
        public string quest_start_npc_name_val { get; set; }
        public Int32 quest_start_npc_2_name_id_val { get; set; }
        public string quest_start_npc_2_name_val { get; set; }
        public Int32 quest_start_npc_3_name_id_val { get; set; }
        public string quest_start_npc_3_name_val { get; set; }
        public Int32 quest_end_npc_name_id_val { get; set; }
        public string quest_end_npc_name_val { get; set; }
        public Int32 quest_start_npc_x_val { get; set; }
        public Int32 quest_start_npc_2_x_val { get; set; }
        public Int32 quest_start_npc_3_x_val { get; set; }
        public Int32 quest_end_npc_x_val { get; set; }
        public Int64 quest_start_npc_y_val { get; set; }
        public Int32 quest_start_npc_2_y_val { get; set; }
        public Int32 quest_start_npc_3_y_val { get; set; }
        public Int32 quest_end_npc_y_val { get; set; }
        public string quest_start_npc_lua_val { get; set; }
        public string quest_start_npc_2_lua_val { get; set; }
        public string quest_start_npc_3_lua_val { get; set; }
        public string quest_end_npc_lua_val { get; set; }
        public Int32 quest_start_desc_id_val { get; set; }
        public Int32 quest_prog_desc_id_val { get; set; }
        public Int32 quest_end_desc_id_val { get; set; }
        public string quest_start_desc_val { get; set; }
        public string quest_prog_desc_val { get; set; }
        public string quest_end_desc_val { get; set; }
        public Int32 quest_obj_1_id_val { get; set; }
        public string quest_obj_1_name_val { get; set; }
        public Int32 quest_obj_1_amount_val { get; set; }
        public Int32 quest_obj_2_id_val { get; set; }
        public string quest_obj_2_name_val { get; set; }
        public Int32 quest_obj_2_amount_val { get; set; }
        public Int32 quest_obj_3_id_val { get; set; }
        public string quest_obj_3_name_val { get; set; }
        public Int32 quest_obj_3_amount_val { get; set; }
        public Int32 quest_def_rew_id_val { get; set; }
        public string quest_def_rew_name_val { get; set; }
        public Int32 quest_def_rew_amount_val { get; set; }
        public Int32 limit_deva_val { get; set; }
        public Int32 limit_asura_val { get; set; }
        public Int32 limit_gaia_val { get; set; }

        public basic_info()
        {
            InitializeComponent();
        }

        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.Windows.Forms.GroupBox basic_info_grpbox;
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(basic_info));
            this.search_grpbox = new System.Windows.Forms.GroupBox();
            this.status = new System.Windows.Forms.Label();
            this.button4 = new System.Windows.Forms.Button();
            this.quest_name_lbl = new System.Windows.Forms.Label();
            this.search_input_name = new System.Windows.Forms.TextBox();
            this.load_quest = new System.Windows.Forms.Button();
            this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
            this.button1 = new System.Windows.Forms.Button();
            this.quest_name_box = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.quest_type = new System.Windows.Forms.ComboBox();
            this.quest_id_lbl = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.level_req = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.quest_class_req_box = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.quest_id = new System.Windows.Forms.TextBox();
            this.quest_max_lv_box = new System.Windows.Forms.TextBox();
            this.label24 = new System.Windows.Forms.Label();
            this.quest_min_jlv = new System.Windows.Forms.TextBox();
            this.label54 = new System.Windows.Forms.Label();
            this.quest_def_rew_id_box = new System.Windows.Forms.TextBox();
            this.label50 = new System.Windows.Forms.Label();
            this.label51 = new System.Windows.Forms.Label();
            this.quest_def_rew_amount_box = new System.Windows.Forms.TextBox();
            this.label52 = new System.Windows.Forms.Label();
            this.button3 = new System.Windows.Forms.Button();
            this.quest_def_rew_name_box = new System.Windows.Forms.ComboBox();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.start_npc_id = new System.Windows.Forms.TextBox();
            this.label5 = new System.Windows.Forms.Label();
            this.start_npc_2_id = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.start_npc_3_id = new System.Windows.Forms.TextBox();
            this.label7 = new System.Windows.Forms.Label();
            this.end_npc_id = new System.Windows.Forms.TextBox();
            this.label8 = new System.Windows.Forms.Label();
            this.start_npc_name = new System.Windows.Forms.TextBox();
            this.start_npc_2_name = new System.Windows.Forms.TextBox();
            this.start_npc_3_name = new System.Windows.Forms.TextBox();
            this.end_npc_name = new System.Windows.Forms.TextBox();
            this.label9 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.label11 = new System.Windows.Forms.Label();
            this.label12 = new System.Windows.Forms.Label();
            this.start_npc_lua = new System.Windows.Forms.TextBox();
            this.start_npc_2_lua = new System.Windows.Forms.TextBox();
            this.label31 = new System.Windows.Forms.Label();
            this.start_npc_3_lua = new System.Windows.Forms.TextBox();
            this.label30 = new System.Windows.Forms.Label();
            this.end_npc_lua_box = new System.Windows.Forms.TextBox();
            this.label29 = new System.Windows.Forms.Label();
            this.label17 = new System.Windows.Forms.Label();
            this.end_npc_y = new System.Windows.Forms.TextBox();
            this.label18 = new System.Windows.Forms.Label();
            this.label33 = new System.Windows.Forms.Label();
            this.label19 = new System.Windows.Forms.Label();
            this.end_npc_x = new System.Windows.Forms.TextBox();
            this.label20 = new System.Windows.Forms.Label();
            this.start_npc_3_y = new System.Windows.Forms.TextBox();
            this.end_npc_giver_title = new System.Windows.Forms.TextBox();
            this.label32 = new System.Windows.Forms.Label();
            this.label14 = new System.Windows.Forms.Label();
            this.start_npc_3_x = new System.Windows.Forms.TextBox();
            this.start_npc_3_title = new System.Windows.Forms.TextBox();
            this.start_npc_2_y = new System.Windows.Forms.TextBox();
            this.label15 = new System.Windows.Forms.Label();
            this.label35 = new System.Windows.Forms.Label();
            this.start_npc_2_title = new System.Windows.Forms.TextBox();
            this.start_npc_2_x = new System.Windows.Forms.TextBox();
            this.label16 = new System.Windows.Forms.Label();
            this.start_npc_y = new System.Windows.Forms.TextBox();
            this.start_npc_giver_title = new System.Windows.Forms.TextBox();
            this.label34 = new System.Windows.Forms.Label();
            this.label13 = new System.Windows.Forms.Label();
            this.start_npc_x = new System.Windows.Forms.TextBox();
            this.label28 = new System.Windows.Forms.Label();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.start_desc_id = new System.Windows.Forms.TextBox();
            this.label21 = new System.Windows.Forms.Label();
            this.start_desc = new System.Windows.Forms.RichTextBox();
            this.label22 = new System.Windows.Forms.Label();
            this.prog_desc_id = new System.Windows.Forms.TextBox();
            this.label23 = new System.Windows.Forms.Label();
            this.prog_desc = new System.Windows.Forms.RichTextBox();
            this.end_desc_id = new System.Windows.Forms.TextBox();
            this.label25 = new System.Windows.Forms.Label();
            this.end_desc = new System.Windows.Forms.RichTextBox();
            this.label26 = new System.Windows.Forms.Label();
            this.label27 = new System.Windows.Forms.Label();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.quest_obj_1_id_box = new System.Windows.Forms.TextBox();
            this.label36 = new System.Windows.Forms.Label();
            this.quest_obj_2_id_box = new System.Windows.Forms.TextBox();
            this.label37 = new System.Windows.Forms.Label();
            this.quest_obj_1_amount_box = new System.Windows.Forms.TextBox();
            this.label38 = new System.Windows.Forms.Label();
            this.quest_obj_2_amount_box = new System.Windows.Forms.TextBox();
            this.label39 = new System.Windows.Forms.Label();
            this.label40 = new System.Windows.Forms.Label();
            this.label41 = new System.Windows.Forms.Label();
            this.quest_obj_3_id_box = new System.Windows.Forms.TextBox();
            this.label44 = new System.Windows.Forms.Label();
            this.quest_obj_3_amount_box = new System.Windows.Forms.TextBox();
            this.label43 = new System.Windows.Forms.Label();
            this.label42 = new System.Windows.Forms.Label();
            this.quest_obj_4_id_box = new System.Windows.Forms.TextBox();
            this.label47 = new System.Windows.Forms.Label();
            this.quest_obj_4_amount_box = new System.Windows.Forms.TextBox();
            this.label46 = new System.Windows.Forms.Label();
            this.label45 = new System.Windows.Forms.Label();
            this.button2 = new System.Windows.Forms.Button();
            this.quest_time_type = new System.Windows.Forms.TextBox();
            this.label48 = new System.Windows.Forms.Label();
            this.quest_time_limit = new System.Windows.Forms.TextBox();
            this.label49 = new System.Windows.Forms.Label();
            this.quest_obj_1_name_box = new System.Windows.Forms.ComboBox();
            this.quest_obj_2_name_box = new System.Windows.Forms.ComboBox();
            this.quest_obj_3_name_box = new System.Windows.Forms.ComboBox();
            this.quest_obj_4_name_box = new System.Windows.Forms.ComboBox();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.progBar1 = new System.Windows.Forms.ProgressBar();
            this.label53 = new System.Windows.Forms.Label();
            this.exp_box = new System.Windows.Forms.TextBox();
            this.exp_lbl = new System.Windows.Forms.Label();
            this.jp_box = new System.Windows.Forms.TextBox();
            this.gold_box = new System.Windows.Forms.TextBox();
            this.holicpoint_box = new System.Windows.Forms.TextBox();
            this.jp_lbl = new System.Windows.Forms.Label();
            this.gold_lbl = new System.Windows.Forms.Label();
            this.holicpoint_lbl = new System.Windows.Forms.Label();
            this.rewards_basic_grpbox = new System.Windows.Forms.GroupBox();
            basic_info_grpbox = new System.Windows.Forms.GroupBox();
            this.search_grpbox.SuspendLayout();
            basic_info_grpbox.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.rewards_basic_grpbox.SuspendLayout();
            this.SuspendLayout();
            // 
            // search_grpbox
            // 
            this.search_grpbox.Controls.Add(this.button4);
            this.search_grpbox.Controls.Add(this.quest_name_lbl);
            this.search_grpbox.Controls.Add(this.search_input_name);
            this.search_grpbox.Controls.Add(this.load_quest);
            this.search_grpbox.Location = new System.Drawing.Point(12, 12);
            this.search_grpbox.Name = "search_grpbox";
            this.search_grpbox.Size = new System.Drawing.Size(189, 97);
            this.search_grpbox.TabIndex = 7;
            this.search_grpbox.TabStop = false;
            this.search_grpbox.Text = "Search";
            this.search_grpbox.Enter += new System.EventHandler(this.search_grpbox_Enter);
            // 
            // status
            // 
            this.status.AutoSize = true;
            this.status.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.status.Location = new System.Drawing.Point(15, 660);
            this.status.Name = "status";
            this.status.Size = new System.Drawing.Size(0, 13);
            this.status.TabIndex = 22;
            this.status.Click += new System.EventHandler(this.status_Click);
            // 
            // button4
            // 
            this.button4.Location = new System.Drawing.Point(7, 68);
            this.button4.Name = "button4";
            this.button4.Size = new System.Drawing.Size(42, 23);
            this.button4.TabIndex = 3;
            this.button4.Text = "All";
            this.button4.UseVisualStyleBackColor = true;
            this.button4.Click += new System.EventHandler(this.button4_Click);
            // 
            // quest_name_lbl
            // 
            this.quest_name_lbl.AutoSize = true;
            this.quest_name_lbl.Location = new System.Drawing.Point(4, 16);
            this.quest_name_lbl.Name = "quest_name_lbl";
            this.quest_name_lbl.Size = new System.Drawing.Size(69, 13);
            this.quest_name_lbl.TabIndex = 4;
            this.quest_name_lbl.Text = "Quest Name:";
            this.quest_name_lbl.Click += new System.EventHandler(this.quest_name_lbl_Click);
            // 
            // search_input_name
            // 
            this.search_input_name.Location = new System.Drawing.Point(7, 32);
            this.search_input_name.Name = "search_input_name";
            this.search_input_name.Size = new System.Drawing.Size(172, 20);
            this.search_input_name.TabIndex = 1;
            this.search_input_name.TextChanged += new System.EventHandler(this.search_input_name_TextChanged);
            // 
            // load_quest
            // 
            this.load_quest.Location = new System.Drawing.Point(123, 68);
            this.load_quest.Name = "load_quest";
            this.load_quest.Size = new System.Drawing.Size(56, 23);
            this.load_quest.TabIndex = 2;
            this.load_quest.Text = "Search";
            this.load_quest.UseVisualStyleBackColor = true;
            this.load_quest.Click += new System.EventHandler(this.load_quest_Click);
            // 
            // toolTip1
            // 
            this.toolTip1.Popup += new System.Windows.Forms.PopupEventHandler(this.toolTip1_Popup);
            // 
            // button1
            // 
            this.button1.Location = new System.Drawing.Point(937, 623);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(131, 50);
            this.button1.TabIndex = 19;
            this.button1.Text = "SAVE";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            // 
            // quest_name_box
            // 
            this.quest_name_box.Location = new System.Drawing.Point(9, 77);
            this.quest_name_box.Name = "quest_name_box";
            this.quest_name_box.Size = new System.Drawing.Size(112, 20);
            this.quest_name_box.TabIndex = 11;
            this.quest_name_box.TextChanged += new System.EventHandler(this.quest_name_box_TextChanged);
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(9, 61);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(69, 13);
            this.label1.TabIndex = 12;
            this.label1.Text = "Quest Name:";
            this.label1.Click += new System.EventHandler(this.label1_Click);
            // 
            // quest_type
            // 
            this.quest_type.FormattingEnabled = true;
            this.quest_type.Location = new System.Drawing.Point(9, 120);
            this.quest_type.Name = "quest_type";
            this.quest_type.Size = new System.Drawing.Size(112, 21);
            this.quest_type.TabIndex = 13;
            this.quest_type.SelectedIndexChanged += new System.EventHandler(this.quest_type_SelectedIndexChanged);
            // 
            // quest_id_lbl
            // 
            this.quest_id_lbl.AutoSize = true;
            this.quest_id_lbl.Location = new System.Drawing.Point(10, 22);
            this.quest_id_lbl.Name = "quest_id_lbl";
            this.quest_id_lbl.Size = new System.Drawing.Size(52, 13);
            this.quest_id_lbl.TabIndex = 10;
            this.quest_id_lbl.Text = "Quest ID:";
            this.quest_id_lbl.Click += new System.EventHandler(this.quest_id_lbl_Click);
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(9, 103);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(65, 13);
            this.label2.TabIndex = 14;
            this.label2.Text = "Quest Type:";
            this.label2.Click += new System.EventHandler(this.label2_Click);
            // 
            // level_req
            // 
            this.level_req.Location = new System.Drawing.Point(9, 163);
            this.level_req.Name = "level_req";
            this.level_req.Size = new System.Drawing.Size(53, 20);
            this.level_req.TabIndex = 15;
            this.level_req.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.level_req.TextChanged += new System.EventHandler(this.level_req_TextChanged);
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(6, 147);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(42, 13);
            this.label3.TabIndex = 16;
            this.label3.Text = "Min Lv:";
            this.label3.Click += new System.EventHandler(this.label3_Click);
            // 
            // quest_class_req_box
            // 
            this.quest_class_req_box.Location = new System.Drawing.Point(9, 203);
            this.quest_class_req_box.Name = "quest_class_req_box";
            this.quest_class_req_box.Size = new System.Drawing.Size(53, 20);
            this.quest_class_req_box.TabIndex = 17;
            this.quest_class_req_box.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.quest_class_req_box.TextChanged += new System.EventHandler(this.quest_class_req_box_TextChanged);
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(9, 187);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(58, 13);
            this.label4.TabIndex = 18;
            this.label4.Text = "Class Req:";
            this.label4.Click += new System.EventHandler(this.label4_Click);
            // 
            // quest_id
            // 
            this.quest_id.Location = new System.Drawing.Point(9, 38);
            this.quest_id.Name = "quest_id";
            this.quest_id.Size = new System.Drawing.Size(112, 20);
            this.quest_id.TabIndex = 19;
            this.quest_id.TextChanged += new System.EventHandler(this.quest_id_TextChanged);
            // 
            // quest_max_lv_box
            // 
            this.quest_max_lv_box.Location = new System.Drawing.Point(68, 163);
            this.quest_max_lv_box.Name = "quest_max_lv_box";
            this.quest_max_lv_box.Size = new System.Drawing.Size(53, 20);
            this.quest_max_lv_box.TabIndex = 20;
            this.quest_max_lv_box.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.quest_max_lv_box.TextChanged += new System.EventHandler(this.quest_max_lv_box_TextChanged);
            // 
            // label24
            // 
            this.label24.AutoSize = true;
            this.label24.Location = new System.Drawing.Point(76, 147);
            this.label24.Name = "label24";
            this.label24.Size = new System.Drawing.Size(45, 13);
            this.label24.TabIndex = 21;
            this.label24.Text = "Max Lv:";
            this.label24.Click += new System.EventHandler(this.label24_Click);
            // 
            // quest_min_jlv
            // 
            this.quest_min_jlv.Location = new System.Drawing.Point(68, 203);
            this.quest_min_jlv.Name = "quest_min_jlv";
            this.quest_min_jlv.Size = new System.Drawing.Size(53, 20);
            this.quest_min_jlv.TabIndex = 22;
            this.quest_min_jlv.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.quest_min_jlv.TextChanged += new System.EventHandler(this.quest_min_jlv_TextChanged);
            // 
            // label54
            // 
            this.label54.AutoSize = true;
            this.label54.Location = new System.Drawing.Point(81, 187);
            this.label54.Name = "label54";
            this.label54.Size = new System.Drawing.Size(43, 13);
            this.label54.TabIndex = 23;
            this.label54.Text = "Min Jlv:";
            this.label54.Click += new System.EventHandler(this.label54_Click);
            // 
            // basic_info_grpbox
            // 
            basic_info_grpbox.Controls.Add(this.label54);
            basic_info_grpbox.Controls.Add(this.quest_min_jlv);
            basic_info_grpbox.Controls.Add(this.label24);
            basic_info_grpbox.Controls.Add(this.quest_max_lv_box);
            basic_info_grpbox.Controls.Add(this.quest_id);
            basic_info_grpbox.Controls.Add(this.label4);
            basic_info_grpbox.Controls.Add(this.quest_class_req_box);
            basic_info_grpbox.Controls.Add(this.label3);
            basic_info_grpbox.Controls.Add(this.level_req);
            basic_info_grpbox.Controls.Add(this.label2);
            basic_info_grpbox.Controls.Add(this.quest_id_lbl);
            basic_info_grpbox.Controls.Add(this.quest_type);
            basic_info_grpbox.Controls.Add(this.label1);
            basic_info_grpbox.Controls.Add(this.quest_name_box);
            basic_info_grpbox.Location = new System.Drawing.Point(207, 12);
            basic_info_grpbox.Name = "basic_info_grpbox";
            basic_info_grpbox.Size = new System.Drawing.Size(130, 231);
            basic_info_grpbox.TabIndex = 14;
            basic_info_grpbox.TabStop = false;
            basic_info_grpbox.Text = "Basic Info";
            basic_info_grpbox.Enter += new System.EventHandler(this.basic_info_grpbox_Enter);
            // 
            // quest_def_rew_id_box
            // 
            this.quest_def_rew_id_box.Location = new System.Drawing.Point(15, 42);
            this.quest_def_rew_id_box.Name = "quest_def_rew_id_box";
            this.quest_def_rew_id_box.Size = new System.Drawing.Size(63, 20);
            this.quest_def_rew_id_box.TabIndex = 0;
            this.quest_def_rew_id_box.TextChanged += new System.EventHandler(this.quest_def_rew_id_box_TextChanged);
            // 
            // label50
            // 
            this.label50.AutoSize = true;
            this.label50.Location = new System.Drawing.Point(12, 26);
            this.label50.Name = "label50";
            this.label50.Size = new System.Drawing.Size(21, 13);
            this.label50.TabIndex = 1;
            this.label50.Text = "ID:";
            this.label50.Click += new System.EventHandler(this.label50_Click);
            // 
            // label51
            // 
            this.label51.AutoSize = true;
            this.label51.Location = new System.Drawing.Point(92, 26);
            this.label51.Name = "label51";
            this.label51.Size = new System.Drawing.Size(38, 13);
            this.label51.TabIndex = 3;
            this.label51.Text = "Name:";
            this.label51.Click += new System.EventHandler(this.label51_Click);
            // 
            // quest_def_rew_amount_box
            // 
            this.quest_def_rew_amount_box.Location = new System.Drawing.Point(248, 42);
            this.quest_def_rew_amount_box.Name = "quest_def_rew_amount_box";
            this.quest_def_rew_amount_box.Size = new System.Drawing.Size(57, 20);
            this.quest_def_rew_amount_box.TabIndex = 4;
            this.quest_def_rew_amount_box.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.quest_def_rew_amount_box.TextChanged += new System.EventHandler(this.quest_def_rew_amount_box_TextChanged);
            // 
            // label52
            // 
            this.label52.AutoSize = true;
            this.label52.Location = new System.Drawing.Point(259, 26);
            this.label52.Name = "label52";
            this.label52.Size = new System.Drawing.Size(46, 13);
            this.label52.TabIndex = 5;
            this.label52.Text = "Amount:";
            this.label52.Click += new System.EventHandler(this.label52_Click);
            // 
            // button3
            // 
            this.button3.Location = new System.Drawing.Point(248, 84);
            this.button3.Name = "button3";
            this.button3.Size = new System.Drawing.Size(62, 30);
            this.button3.TabIndex = 6;
            this.button3.Text = "Optional";
            this.button3.UseVisualStyleBackColor = true;
            this.button3.Click += new System.EventHandler(this.button3_Click);
            // 
            // quest_def_rew_name_box
            // 
            this.quest_def_rew_name_box.FormattingEnabled = true;
            this.quest_def_rew_name_box.Location = new System.Drawing.Point(95, 41);
            this.quest_def_rew_name_box.Name = "quest_def_rew_name_box";
            this.quest_def_rew_name_box.Size = new System.Drawing.Size(135, 21);
            this.quest_def_rew_name_box.Sorted = true;
            this.quest_def_rew_name_box.TabIndex = 24;
            this.quest_def_rew_name_box.SelectedIndexChanged += new System.EventHandler(this.quest_def_rew_name_box_SelectedIndexChanged);
            // 
            // groupBox4
            // 
            this.groupBox4.Controls.Add(this.quest_def_rew_name_box);
            this.groupBox4.Controls.Add(this.button3);
            this.groupBox4.Controls.Add(this.label52);
            this.groupBox4.Controls.Add(this.quest_def_rew_amount_box);
            this.groupBox4.Controls.Add(this.label51);
            this.groupBox4.Controls.Add(this.label50);
            this.groupBox4.Controls.Add(this.quest_def_rew_id_box);
            this.groupBox4.Location = new System.Drawing.Point(12, 487);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(325, 120);
            this.groupBox4.TabIndex = 18;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Reward (Default)";
            this.groupBox4.Enter += new System.EventHandler(this.groupBox4_Enter);
            // 
            // start_npc_id
            // 
            this.start_npc_id.Location = new System.Drawing.Point(23, 51);
            this.start_npc_id.Name = "start_npc_id";
            this.start_npc_id.Size = new System.Drawing.Size(100, 20);
            this.start_npc_id.TabIndex = 0;
            this.start_npc_id.TextChanged += new System.EventHandler(this.start_npc_id_TextChanged);
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(23, 35);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(71, 13);
            this.label5.TabIndex = 1;
            this.label5.Text = "Start NPC ID:";
            this.label5.Click += new System.EventHandler(this.label5_Click);
            // 
            // start_npc_2_id
            // 
            this.start_npc_2_id.Location = new System.Drawing.Point(23, 96);
            this.start_npc_2_id.Name = "start_npc_2_id";
            this.start_npc_2_id.Size = new System.Drawing.Size(100, 20);
            this.start_npc_2_id.TabIndex = 2;
            this.start_npc_2_id.TextChanged += new System.EventHandler(this.start_npc_2_id_TextChanged);
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(23, 80);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(86, 13);
            this.label6.TabIndex = 3;
            this.label6.Text = "Start NPC (2) ID:";
            this.label6.Click += new System.EventHandler(this.label6_Click);
            // 
            // start_npc_3_id
            // 
            this.start_npc_3_id.Location = new System.Drawing.Point(23, 139);
            this.start_npc_3_id.Name = "start_npc_3_id";
            this.start_npc_3_id.Size = new System.Drawing.Size(100, 20);
            this.start_npc_3_id.TabIndex = 4;
            this.start_npc_3_id.TextChanged += new System.EventHandler(this.start_npc_3_id_TextChanged);
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(23, 123);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(86, 13);
            this.label7.TabIndex = 5;
            this.label7.Text = "Start NPC (3) ID:";
            this.label7.Click += new System.EventHandler(this.label7_Click);
            // 
            // end_npc_id
            // 
            this.end_npc_id.Location = new System.Drawing.Point(23, 182);
            this.end_npc_id.Name = "end_npc_id";
            this.end_npc_id.Size = new System.Drawing.Size(100, 20);
            this.end_npc_id.TabIndex = 6;
            this.end_npc_id.TextChanged += new System.EventHandler(this.end_npc_id_TextChanged);
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(23, 166);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(68, 13);
            this.label8.TabIndex = 7;
            this.label8.Text = "End NPC ID:";
            this.label8.Click += new System.EventHandler(this.label8_Click);
            // 
            // start_npc_name
            // 
            this.start_npc_name.Location = new System.Drawing.Point(297, 51);
            this.start_npc_name.Name = "start_npc_name";
            this.start_npc_name.Size = new System.Drawing.Size(100, 20);
            this.start_npc_name.TabIndex = 8;
            this.start_npc_name.TextChanged += new System.EventHandler(this.start_npc_name_TextChanged);
            // 
            // start_npc_2_name
            // 
            this.start_npc_2_name.Location = new System.Drawing.Point(297, 96);
            this.start_npc_2_name.Name = "start_npc_2_name";
            this.start_npc_2_name.Size = new System.Drawing.Size(100, 20);
            this.start_npc_2_name.TabIndex = 9;
            this.start_npc_2_name.TextChanged += new System.EventHandler(this.start_npc_2_name_TextChanged);
            // 
            // start_npc_3_name
            // 
            this.start_npc_3_name.Location = new System.Drawing.Point(297, 139);
            this.start_npc_3_name.Name = "start_npc_3_name";
            this.start_npc_3_name.Size = new System.Drawing.Size(100, 20);
            this.start_npc_3_name.TabIndex = 10;
            this.start_npc_3_name.TextChanged += new System.EventHandler(this.start_npc_3_name_TextChanged);
            // 
            // end_npc_name
            // 
            this.end_npc_name.Location = new System.Drawing.Point(297, 182);
            this.end_npc_name.Name = "end_npc_name";
            this.end_npc_name.Size = new System.Drawing.Size(100, 20);
            this.end_npc_name.TabIndex = 11;
            this.end_npc_name.TextChanged += new System.EventHandler(this.end_npc_name_TextChanged);
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(294, 35);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(88, 13);
            this.label9.TabIndex = 16;
            this.label9.Text = "Start NPC Name:";
            this.label9.Click += new System.EventHandler(this.label9_Click);
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(294, 80);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(103, 13);
            this.label10.TabIndex = 17;
            this.label10.Text = "Start NPC (2) Name:";
            this.label10.Click += new System.EventHandler(this.label10_Click);
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(294, 123);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(103, 13);
            this.label11.TabIndex = 18;
            this.label11.Text = "Start NPC (3) Name:";
            this.label11.Click += new System.EventHandler(this.label11_Click);
            // 
            // label12
            // 
            this.label12.AutoSize = true;
            this.label12.Location = new System.Drawing.Point(294, 166);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(85, 13);
            this.label12.TabIndex = 19;
            this.label12.Text = "End NPC Name:";
            this.label12.Click += new System.EventHandler(this.label12_Click);
            // 
            // start_npc_lua
            // 
            this.start_npc_lua.Location = new System.Drawing.Point(582, 51);
            this.start_npc_lua.Name = "start_npc_lua";
            this.start_npc_lua.Size = new System.Drawing.Size(131, 20);
            this.start_npc_lua.TabIndex = 24;
            this.start_npc_lua.TextChanged += new System.EventHandler(this.start_npc_lua_TextChanged);
            // 
            // start_npc_2_lua
            // 
            this.start_npc_2_lua.Location = new System.Drawing.Point(582, 96);
            this.start_npc_2_lua.Name = "start_npc_2_lua";
            this.start_npc_2_lua.Size = new System.Drawing.Size(131, 20);
            this.start_npc_2_lua.TabIndex = 25;
            this.start_npc_2_lua.TextChanged += new System.EventHandler(this.start_npc_2_lua_TextChanged);
            // 
            // label31
            // 
            this.label31.AutoSize = true;
            this.label31.Location = new System.Drawing.Point(444, 80);
            this.label31.Name = "label31";
            this.label31.Size = new System.Drawing.Size(17, 13);
            this.label31.TabIndex = 42;
            this.label31.Text = "X:";
            this.label31.Click += new System.EventHandler(this.label31_Click);
            // 
            // start_npc_3_lua
            // 
            this.start_npc_3_lua.Location = new System.Drawing.Point(582, 139);
            this.start_npc_3_lua.Name = "start_npc_3_lua";
            this.start_npc_3_lua.Size = new System.Drawing.Size(131, 20);
            this.start_npc_3_lua.TabIndex = 26;
            this.start_npc_3_lua.TextChanged += new System.EventHandler(this.start_npc_3_lua_TextChanged);
            // 
            // label30
            // 
            this.label30.AutoSize = true;
            this.label30.Location = new System.Drawing.Point(524, 80);
            this.label30.Name = "label30";
            this.label30.Size = new System.Drawing.Size(17, 13);
            this.label30.TabIndex = 43;
            this.label30.Text = "Y:";
            this.label30.Click += new System.EventHandler(this.label30_Click);
            // 
            // end_npc_lua_box
            // 
            this.end_npc_lua_box.Location = new System.Drawing.Point(582, 182);
            this.end_npc_lua_box.Name = "end_npc_lua_box";
            this.end_npc_lua_box.Size = new System.Drawing.Size(131, 20);
            this.end_npc_lua_box.TabIndex = 27;
            this.end_npc_lua_box.TextChanged += new System.EventHandler(this.end_npc_lua_box_TextChanged);
            // 
            // label29
            // 
            this.label29.AutoSize = true;
            this.label29.Location = new System.Drawing.Point(524, 35);
            this.label29.Name = "label29";
            this.label29.Size = new System.Drawing.Size(17, 13);
            this.label29.TabIndex = 41;
            this.label29.Text = "Y:";
            this.label29.Click += new System.EventHandler(this.label29_Click);
            // 
            // label17
            // 
            this.label17.AutoSize = true;
            this.label17.Location = new System.Drawing.Point(582, 35);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(81, 13);
            this.label17.TabIndex = 28;
            this.label17.Text = "Start NPC LUA:";
            this.label17.Click += new System.EventHandler(this.label17_Click);
            // 
            // end_npc_y
            // 
            this.end_npc_y.Location = new System.Drawing.Point(507, 184);
            this.end_npc_y.Name = "end_npc_y";
            this.end_npc_y.Size = new System.Drawing.Size(43, 20);
            this.end_npc_y.TabIndex = 39;
            this.end_npc_y.TextChanged += new System.EventHandler(this.end_npc_y_TextChanged);
            // 
            // label18
            // 
            this.label18.AutoSize = true;
            this.label18.Location = new System.Drawing.Point(582, 80);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(96, 13);
            this.label18.TabIndex = 29;
            this.label18.Text = "Start NPC (2) LUA:";
            this.label18.Click += new System.EventHandler(this.label18_Click);
            // 
            // label33
            // 
            this.label33.AutoSize = true;
            this.label33.Location = new System.Drawing.Point(444, 126);
            this.label33.Name = "label33";
            this.label33.Size = new System.Drawing.Size(17, 13);
            this.label33.TabIndex = 44;
            this.label33.Text = "X:";
            this.label33.Click += new System.EventHandler(this.label33_Click);
            // 
            // label19
            // 
            this.label19.AutoSize = true;
            this.label19.Location = new System.Drawing.Point(582, 123);
            this.label19.Name = "label19";
            this.label19.Size = new System.Drawing.Size(99, 13);
            this.label19.TabIndex = 30;
            this.label19.Text = "Start NPC  (3) LUA:";
            this.label19.Click += new System.EventHandler(this.label19_Click);
            // 
            // end_npc_x
            // 
            this.end_npc_x.Location = new System.Drawing.Point(430, 184);
            this.end_npc_x.Name = "end_npc_x";
            this.end_npc_x.Size = new System.Drawing.Size(43, 20);
            this.end_npc_x.TabIndex = 38;
            this.end_npc_x.TextChanged += new System.EventHandler(this.end_npc_x_TextChanged);
            // 
            // label20
            // 
            this.label20.AutoSize = true;
            this.label20.Location = new System.Drawing.Point(585, 166);
            this.label20.Name = "label20";
            this.label20.Size = new System.Drawing.Size(78, 13);
            this.label20.TabIndex = 31;
            this.label20.Text = "End NPC LUA:";
            this.label20.Click += new System.EventHandler(this.label20_Click);
            // 
            // start_npc_3_y
            // 
            this.start_npc_3_y.Location = new System.Drawing.Point(507, 139);
            this.start_npc_3_y.Name = "start_npc_3_y";
            this.start_npc_3_y.Size = new System.Drawing.Size(43, 20);
            this.start_npc_3_y.TabIndex = 37;
            this.start_npc_3_y.TextChanged += new System.EventHandler(this.start_npc_3_y_TextChanged);
            // 
            // end_npc_giver_title
            // 
            this.end_npc_giver_title.Location = new System.Drawing.Point(158, 182);
            this.end_npc_giver_title.Name = "end_npc_giver_title";
            this.end_npc_giver_title.Size = new System.Drawing.Size(100, 20);
            this.end_npc_giver_title.TabIndex = 15;
            this.end_npc_giver_title.TextChanged += new System.EventHandler(this.end_npc_giver_title_TextChanged);
            // 
            // label32
            // 
            this.label32.AutoSize = true;
            this.label32.Location = new System.Drawing.Point(524, 126);
            this.label32.Name = "label32";
            this.label32.Size = new System.Drawing.Size(17, 13);
            this.label32.TabIndex = 45;
            this.label32.Text = "Y:";
            this.label32.Click += new System.EventHandler(this.label32_Click);
            // 
            // label14
            // 
            this.label14.AutoSize = true;
            this.label14.Location = new System.Drawing.Point(155, 80);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(95, 13);
            this.label14.TabIndex = 21;
            this.label14.Text = "Start NPC (2) Title:";
            this.label14.Click += new System.EventHandler(this.label14_Click);
            // 
            // start_npc_3_x
            // 
            this.start_npc_3_x.Location = new System.Drawing.Point(430, 139);
            this.start_npc_3_x.Name = "start_npc_3_x";
            this.start_npc_3_x.Size = new System.Drawing.Size(43, 20);
            this.start_npc_3_x.TabIndex = 36;
            this.start_npc_3_x.TextChanged += new System.EventHandler(this.start_npc_3_x_TextChanged);
            // 
            // start_npc_3_title
            // 
            this.start_npc_3_title.Location = new System.Drawing.Point(158, 139);
            this.start_npc_3_title.Name = "start_npc_3_title";
            this.start_npc_3_title.Size = new System.Drawing.Size(100, 20);
            this.start_npc_3_title.TabIndex = 14;
            this.start_npc_3_title.TextChanged += new System.EventHandler(this.start_npc_3_title_TextChanged);
            // 
            // start_npc_2_y
            // 
            this.start_npc_2_y.Location = new System.Drawing.Point(507, 96);
            this.start_npc_2_y.Name = "start_npc_2_y";
            this.start_npc_2_y.Size = new System.Drawing.Size(43, 20);
            this.start_npc_2_y.TabIndex = 35;
            this.start_npc_2_y.TextChanged += new System.EventHandler(this.start_npc_2_y_TextChanged);
            // 
            // label15
            // 
            this.label15.AutoSize = true;
            this.label15.Location = new System.Drawing.Point(155, 123);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(95, 13);
            this.label15.TabIndex = 22;
            this.label15.Text = "Start NPC (3) Title:";
            this.label15.Click += new System.EventHandler(this.label15_Click);
            // 
            // label35
            // 
            this.label35.AutoSize = true;
            this.label35.Location = new System.Drawing.Point(444, 169);
            this.label35.Name = "label35";
            this.label35.Size = new System.Drawing.Size(17, 13);
            this.label35.TabIndex = 46;
            this.label35.Text = "X:";
            this.label35.Click += new System.EventHandler(this.label35_Click);
            // 
            // start_npc_2_title
            // 
            this.start_npc_2_title.Location = new System.Drawing.Point(158, 96);
            this.start_npc_2_title.Name = "start_npc_2_title";
            this.start_npc_2_title.Size = new System.Drawing.Size(100, 20);
            this.start_npc_2_title.TabIndex = 13;
            this.start_npc_2_title.TextChanged += new System.EventHandler(this.start_npc_2_title_TextChanged);
            // 
            // start_npc_2_x
            // 
            this.start_npc_2_x.Location = new System.Drawing.Point(430, 96);
            this.start_npc_2_x.Name = "start_npc_2_x";
            this.start_npc_2_x.Size = new System.Drawing.Size(43, 20);
            this.start_npc_2_x.TabIndex = 34;
            this.start_npc_2_x.TextChanged += new System.EventHandler(this.start_npc_2_x_TextChanged);
            // 
            // label16
            // 
            this.label16.AutoSize = true;
            this.label16.Location = new System.Drawing.Point(158, 166);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(77, 13);
            this.label16.TabIndex = 23;
            this.label16.Text = "End NPC Title:";
            this.label16.Click += new System.EventHandler(this.label16_Click);
            // 
            // start_npc_y
            // 
            this.start_npc_y.Location = new System.Drawing.Point(507, 51);
            this.start_npc_y.Name = "start_npc_y";
            this.start_npc_y.Size = new System.Drawing.Size(43, 20);
            this.start_npc_y.TabIndex = 33;
            this.start_npc_y.TextChanged += new System.EventHandler(this.start_npc_y_TextChanged);
            // 
            // start_npc_giver_title
            // 
            this.start_npc_giver_title.Location = new System.Drawing.Point(158, 51);
            this.start_npc_giver_title.Name = "start_npc_giver_title";
            this.start_npc_giver_title.Size = new System.Drawing.Size(100, 20);
            this.start_npc_giver_title.TabIndex = 12;
            this.start_npc_giver_title.TextChanged += new System.EventHandler(this.start_npc_giver_title_TextChanged);
            // 
            // label34
            // 
            this.label34.AutoSize = true;
            this.label34.Location = new System.Drawing.Point(524, 169);
            this.label34.Name = "label34";
            this.label34.Size = new System.Drawing.Size(17, 13);
            this.label34.TabIndex = 47;
            this.label34.Text = "Y:";
            this.label34.Click += new System.EventHandler(this.label34_Click);
            // 
            // label13
            // 
            this.label13.AutoSize = true;
            this.label13.Location = new System.Drawing.Point(155, 35);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(80, 13);
            this.label13.TabIndex = 20;
            this.label13.Text = "Start NPC Title:";
            this.label13.Click += new System.EventHandler(this.label13_Click);
            // 
            // start_npc_x
            // 
            this.start_npc_x.Location = new System.Drawing.Point(430, 51);
            this.start_npc_x.Name = "start_npc_x";
            this.start_npc_x.Size = new System.Drawing.Size(43, 20);
            this.start_npc_x.TabIndex = 32;
            this.start_npc_x.TextChanged += new System.EventHandler(this.start_npc_x_TextChanged);
            // 
            // label28
            // 
            this.label28.AutoSize = true;
            this.label28.Location = new System.Drawing.Point(444, 35);
            this.label28.Name = "label28";
            this.label28.Size = new System.Drawing.Size(17, 13);
            this.label28.TabIndex = 40;
            this.label28.Text = "X:";
            this.label28.Click += new System.EventHandler(this.label28_Click);
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.label28);
            this.groupBox1.Controls.Add(this.start_npc_x);
            this.groupBox1.Controls.Add(this.label13);
            this.groupBox1.Controls.Add(this.label34);
            this.groupBox1.Controls.Add(this.start_npc_giver_title);
            this.groupBox1.Controls.Add(this.start_npc_y);
            this.groupBox1.Controls.Add(this.label16);
            this.groupBox1.Controls.Add(this.start_npc_2_x);
            this.groupBox1.Controls.Add(this.start_npc_2_title);
            this.groupBox1.Controls.Add(this.label35);
            this.groupBox1.Controls.Add(this.label15);
            this.groupBox1.Controls.Add(this.start_npc_2_y);
            this.groupBox1.Controls.Add(this.start_npc_3_title);
            this.groupBox1.Controls.Add(this.start_npc_3_x);
            this.groupBox1.Controls.Add(this.label14);
            this.groupBox1.Controls.Add(this.label32);
            this.groupBox1.Controls.Add(this.end_npc_giver_title);
            this.groupBox1.Controls.Add(this.start_npc_3_y);
            this.groupBox1.Controls.Add(this.label20);
            this.groupBox1.Controls.Add(this.end_npc_x);
            this.groupBox1.Controls.Add(this.label19);
            this.groupBox1.Controls.Add(this.label33);
            this.groupBox1.Controls.Add(this.label18);
            this.groupBox1.Controls.Add(this.end_npc_y);
            this.groupBox1.Controls.Add(this.label17);
            this.groupBox1.Controls.Add(this.label29);
            this.groupBox1.Controls.Add(this.end_npc_lua_box);
            this.groupBox1.Controls.Add(this.label30);
            this.groupBox1.Controls.Add(this.start_npc_3_lua);
            this.groupBox1.Controls.Add(this.label31);
            this.groupBox1.Controls.Add(this.start_npc_2_lua);
            this.groupBox1.Controls.Add(this.start_npc_lua);
            this.groupBox1.Controls.Add(this.label12);
            this.groupBox1.Controls.Add(this.label11);
            this.groupBox1.Controls.Add(this.label10);
            this.groupBox1.Controls.Add(this.label9);
            this.groupBox1.Controls.Add(this.end_npc_name);
            this.groupBox1.Controls.Add(this.start_npc_3_name);
            this.groupBox1.Controls.Add(this.start_npc_2_name);
            this.groupBox1.Controls.Add(this.start_npc_name);
            this.groupBox1.Controls.Add(this.label8);
            this.groupBox1.Controls.Add(this.end_npc_id);
            this.groupBox1.Controls.Add(this.label7);
            this.groupBox1.Controls.Add(this.start_npc_3_id);
            this.groupBox1.Controls.Add(this.label6);
            this.groupBox1.Controls.Add(this.start_npc_2_id);
            this.groupBox1.Controls.Add(this.label5);
            this.groupBox1.Controls.Add(this.start_npc_id);
            this.groupBox1.Location = new System.Drawing.Point(343, 12);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(736, 231);
            this.groupBox1.TabIndex = 15;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "NPC Info";
            this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
            // 
            // start_desc_id
            // 
            this.start_desc_id.Location = new System.Drawing.Point(9, 65);
            this.start_desc_id.Name = "start_desc_id";
            this.start_desc_id.Size = new System.Drawing.Size(87, 20);
            this.start_desc_id.TabIndex = 0;
            this.start_desc_id.TextChanged += new System.EventHandler(this.start_desc_id_TextChanged);
            // 
            // label21
            // 
            this.label21.AutoSize = true;
            this.label21.Location = new System.Drawing.Point(6, 49);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(74, 13);
            this.label21.TabIndex = 1;
            this.label21.Text = "Start Desc ID:";
            this.label21.Click += new System.EventHandler(this.label21_Click);
            // 
            // start_desc
            // 
            this.start_desc.Location = new System.Drawing.Point(9, 139);
            this.start_desc.Name = "start_desc";
            this.start_desc.Size = new System.Drawing.Size(226, 178);
            this.start_desc.TabIndex = 2;
            this.start_desc.Text = "";
            this.start_desc.TextChanged += new System.EventHandler(this.start_desc_TextChanged);
            // 
            // label22
            // 
            this.label22.AutoSize = true;
            this.label22.Location = new System.Drawing.Point(6, 123);
            this.label22.Name = "label22";
            this.label22.Size = new System.Drawing.Size(88, 13);
            this.label22.TabIndex = 3;
            this.label22.Text = "Start Description:";
            this.label22.Click += new System.EventHandler(this.label22_Click);
            // 
            // prog_desc_id
            // 
            this.prog_desc_id.Location = new System.Drawing.Point(262, 65);
            this.prog_desc_id.Name = "prog_desc_id";
            this.prog_desc_id.Size = new System.Drawing.Size(90, 20);
            this.prog_desc_id.TabIndex = 4;
            this.prog_desc_id.TextChanged += new System.EventHandler(this.prog_desc_id_TextChanged);
            // 
            // label23
            // 
            this.label23.AutoSize = true;
            this.label23.Location = new System.Drawing.Point(259, 49);
            this.label23.Name = "label23";
            this.label23.Size = new System.Drawing.Size(93, 13);
            this.label23.TabIndex = 5;
            this.label23.Text = "Progress Desc ID:";
            this.label23.Click += new System.EventHandler(this.label23_Click);
            // 
            // prog_desc
            // 
            this.prog_desc.Location = new System.Drawing.Point(261, 139);
            this.prog_desc.Name = "prog_desc";
            this.prog_desc.Size = new System.Drawing.Size(224, 178);
            this.prog_desc.TabIndex = 6;
            this.prog_desc.Text = "";
            this.prog_desc.TextChanged += new System.EventHandler(this.prog_desc_TextChanged);
            // 
            // end_desc_id
            // 
            this.end_desc_id.Location = new System.Drawing.Point(506, 65);
            this.end_desc_id.Name = "end_desc_id";
            this.end_desc_id.Size = new System.Drawing.Size(80, 20);
            this.end_desc_id.TabIndex = 7;
            this.end_desc_id.TextChanged += new System.EventHandler(this.end_desc_id_TextChanged);
            // 
            // label25
            // 
            this.label25.AutoSize = true;
            this.label25.Location = new System.Drawing.Point(503, 49);
            this.label25.Name = "label25";
            this.label25.Size = new System.Drawing.Size(71, 13);
            this.label25.TabIndex = 8;
            this.label25.Text = "End Desc ID:";
            this.label25.Click += new System.EventHandler(this.label25_Click);
            // 
            // end_desc
            // 
            this.end_desc.Location = new System.Drawing.Point(506, 140);
            this.end_desc.Name = "end_desc";
            this.end_desc.Size = new System.Drawing.Size(220, 177);
            this.end_desc.TabIndex = 9;
            this.end_desc.Text = "";
            this.end_desc.TextChanged += new System.EventHandler(this.end_desc_TextChanged);
            // 
            // label26
            // 
            this.label26.AutoSize = true;
            this.label26.Location = new System.Drawing.Point(259, 123);
            this.label26.Name = "label26";
            this.label26.Size = new System.Drawing.Size(107, 13);
            this.label26.TabIndex = 10;
            this.label26.Text = "Progress Description:";
            this.label26.Click += new System.EventHandler(this.label26_Click);
            // 
            // label27
            // 
            this.label27.AutoSize = true;
            this.label27.Location = new System.Drawing.Point(503, 123);
            this.label27.Name = "label27";
            this.label27.Size = new System.Drawing.Size(85, 13);
            this.label27.TabIndex = 11;
            this.label27.Text = "End Description:";
            this.label27.Click += new System.EventHandler(this.label27_Click);
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.label27);
            this.groupBox2.Controls.Add(this.label26);
            this.groupBox2.Controls.Add(this.end_desc);
            this.groupBox2.Controls.Add(this.label25);
            this.groupBox2.Controls.Add(this.end_desc_id);
            this.groupBox2.Controls.Add(this.prog_desc);
            this.groupBox2.Controls.Add(this.label23);
            this.groupBox2.Controls.Add(this.prog_desc_id);
            this.groupBox2.Controls.Add(this.label22);
            this.groupBox2.Controls.Add(this.start_desc);
            this.groupBox2.Controls.Add(this.label21);
            this.groupBox2.Controls.Add(this.start_desc_id);
            this.groupBox2.Location = new System.Drawing.Point(343, 245);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(736, 362);
            this.groupBox2.TabIndex = 16;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Description Info";
            this.groupBox2.Enter += new System.EventHandler(this.groupBox2_Enter);
            // 
            // quest_obj_1_id_box
            // 
            this.quest_obj_1_id_box.Location = new System.Drawing.Point(24, 42);
            this.quest_obj_1_id_box.Name = "quest_obj_1_id_box";
            this.quest_obj_1_id_box.Size = new System.Drawing.Size(100, 20);
            this.quest_obj_1_id_box.TabIndex = 0;
            this.quest_obj_1_id_box.TextChanged += new System.EventHandler(this.quest_obj_1_id_box_TextChanged);
            // 
            // label36
            // 
            this.label36.AutoSize = true;
            this.label36.Location = new System.Drawing.Point(21, 27);
            this.label36.Name = "label36";
            this.label36.Size = new System.Drawing.Size(78, 13);
            this.label36.TabIndex = 1;
            this.label36.Text = "Objective 1 ID:";
            this.label36.Click += new System.EventHandler(this.label36_Click);
            // 
            // quest_obj_2_id_box
            // 
            this.quest_obj_2_id_box.Location = new System.Drawing.Point(24, 82);
            this.quest_obj_2_id_box.Name = "quest_obj_2_id_box";
            this.quest_obj_2_id_box.Size = new System.Drawing.Size(100, 20);
            this.quest_obj_2_id_box.TabIndex = 2;
            this.quest_obj_2_id_box.TextChanged += new System.EventHandler(this.quest_obj_2_id_box_TextChanged);
            // 
            // label37
            // 
            this.label37.AutoSize = true;
            this.label37.Location = new System.Drawing.Point(21, 69);
            this.label37.Name = "label37";
            this.label37.Size = new System.Drawing.Size(78, 13);
            this.label37.TabIndex = 3;
            this.label37.Text = "Objective 2 ID:";
            this.label37.Click += new System.EventHandler(this.label37_Click);
            // 
            // quest_obj_1_amount_box
            // 
            this.quest_obj_1_amount_box.Location = new System.Drawing.Point(265, 42);
            this.quest_obj_1_amount_box.Name = "quest_obj_1_amount_box";
            this.quest_obj_1_amount_box.Size = new System.Drawing.Size(44, 20);
            this.quest_obj_1_amount_box.TabIndex = 4;
            this.quest_obj_1_amount_box.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.quest_obj_1_amount_box.TextChanged += new System.EventHandler(this.quest_obj_1_amount_box_TextChanged);
            // 
            // label38
            // 
            this.label38.AutoSize = true;
            this.label38.Location = new System.Drawing.Point(263, 27);
            this.label38.Name = "label38";
            this.label38.Size = new System.Drawing.Size(46, 13);
            this.label38.TabIndex = 5;
            this.label38.Text = "Amount:";
            this.label38.Click += new System.EventHandler(this.label38_Click);
            // 
            // quest_obj_2_amount_box
            // 
            this.quest_obj_2_amount_box.Location = new System.Drawing.Point(265, 82);
            this.quest_obj_2_amount_box.Name = "quest_obj_2_amount_box";
            this.quest_obj_2_amount_box.Size = new System.Drawing.Size(44, 20);
            this.quest_obj_2_amount_box.TabIndex = 6;
            this.quest_obj_2_amount_box.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.quest_obj_2_amount_box.TextChanged += new System.EventHandler(this.quest_obj_2_amount_box_TextChanged);
            // 
            // label39
            // 
            this.label39.AutoSize = true;
            this.label39.Location = new System.Drawing.Point(263, 67);
            this.label39.Name = "label39";
            this.label39.Size = new System.Drawing.Size(46, 13);
            this.label39.TabIndex = 7;
            this.label39.Text = "Amount:";
            this.label39.Click += new System.EventHandler(this.label39_Click);
            // 
            // label40
            // 
            this.label40.AutoSize = true;
            this.label40.Location = new System.Drawing.Point(138, 27);
            this.label40.Name = "label40";
            this.label40.Size = new System.Drawing.Size(95, 13);
            this.label40.TabIndex = 9;
            this.label40.Text = "Objective 1 Name:";
            this.label40.Click += new System.EventHandler(this.label40_Click);
            // 
            // label41
            // 
            this.label41.AutoSize = true;
            this.label41.Location = new System.Drawing.Point(138, 69);
            this.label41.Name = "label41";
            this.label41.Size = new System.Drawing.Size(95, 13);
            this.label41.TabIndex = 11;
            this.label41.Text = "Objective 2 Name:";
            this.label41.Click += new System.EventHandler(this.label41_Click);
            // 
            // quest_obj_3_id_box
            // 
            this.quest_obj_3_id_box.Location = new System.Drawing.Point(24, 127);
            this.quest_obj_3_id_box.Name = "quest_obj_3_id_box";
            this.quest_obj_3_id_box.Size = new System.Drawing.Size(100, 20);
            this.quest_obj_3_id_box.TabIndex = 12;
            this.quest_obj_3_id_box.TextChanged += new System.EventHandler(this.quest_obj_3_id_box_TextChanged);
            // 
            // label44
            // 
            this.label44.AutoSize = true;
            this.label44.Location = new System.Drawing.Point(21, 114);
            this.label44.Name = "label44";
            this.label44.Size = new System.Drawing.Size(78, 13);
            this.label44.TabIndex = 13;
            this.label44.Text = "Objective 3 ID:";
            this.label44.Click += new System.EventHandler(this.label44_Click);
            // 
            // quest_obj_3_amount_box
            // 
            this.quest_obj_3_amount_box.Location = new System.Drawing.Point(265, 127);
            this.quest_obj_3_amount_box.Name = "quest_obj_3_amount_box";
            this.quest_obj_3_amount_box.Size = new System.Drawing.Size(44, 20);
            this.quest_obj_3_amount_box.TabIndex = 14;
            this.quest_obj_3_amount_box.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.quest_obj_3_amount_box.TextChanged += new System.EventHandler(this.quest_obj_3_amount_box_TextChanged);
            // 
            // label43
            // 
            this.label43.AutoSize = true;
            this.label43.Location = new System.Drawing.Point(263, 112);
            this.label43.Name = "label43";
            this.label43.Size = new System.Drawing.Size(46, 13);
            this.label43.TabIndex = 15;
            this.label43.Text = "Amount:";
            this.label43.Click += new System.EventHandler(this.label43_Click);
            // 
            // label42
            // 
            this.label42.AutoSize = true;
            this.label42.Location = new System.Drawing.Point(138, 110);
            this.label42.Name = "label42";
            this.label42.Size = new System.Drawing.Size(95, 13);
            this.label42.TabIndex = 17;
            this.label42.Text = "Objective 3 Name:";
            this.label42.Click += new System.EventHandler(this.label42_Click);
            // 
            // quest_obj_4_id_box
            // 
            this.quest_obj_4_id_box.Location = new System.Drawing.Point(24, 172);
            this.quest_obj_4_id_box.Name = "quest_obj_4_id_box";
            this.quest_obj_4_id_box.Size = new System.Drawing.Size(100, 20);
            this.quest_obj_4_id_box.TabIndex = 18;
            this.quest_obj_4_id_box.TextChanged += new System.EventHandler(this.quest_obj_4_id_box_TextChanged);
            // 
            // label47
            // 
            this.label47.AutoSize = true;
            this.label47.Location = new System.Drawing.Point(21, 159);
            this.label47.Name = "label47";
            this.label47.Size = new System.Drawing.Size(78, 13);
            this.label47.TabIndex = 19;
            this.label47.Text = "Objective 4 ID:";
            this.label47.Click += new System.EventHandler(this.label47_Click);
            // 
            // quest_obj_4_amount_box
            // 
            this.quest_obj_4_amount_box.Location = new System.Drawing.Point(265, 172);
            this.quest_obj_4_amount_box.Name = "quest_obj_4_amount_box";
            this.quest_obj_4_amount_box.Size = new System.Drawing.Size(44, 20);
            this.quest_obj_4_amount_box.TabIndex = 20;
            this.quest_obj_4_amount_box.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.quest_obj_4_amount_box.TextChanged += new System.EventHandler(this.quest_obj_4_amount_box_TextChanged);
            // 
            // label46
            // 
            this.label46.AutoSize = true;
            this.label46.Location = new System.Drawing.Point(263, 157);
            this.label46.Name = "label46";
            this.label46.Size = new System.Drawing.Size(46, 13);
            this.label46.TabIndex = 21;
            this.label46.Text = "Amount:";
            this.label46.Click += new System.EventHandler(this.label46_Click);
            // 
            // label45
            // 
            this.label45.AutoSize = true;
            this.label45.Location = new System.Drawing.Point(138, 159);
            this.label45.Name = "label45";
            this.label45.Size = new System.Drawing.Size(95, 13);
            this.label45.TabIndex = 23;
            this.label45.Text = "Objective 4 Name:";
            this.label45.Click += new System.EventHandler(this.label45_Click);
            // 
            // button2
            // 
            this.button2.Location = new System.Drawing.Point(266, 208);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(43, 23);
            this.button2.TabIndex = 24;
            this.button2.Text = "All";
            this.button2.UseVisualStyleBackColor = true;
            this.button2.Click += new System.EventHandler(this.button2_Click);
            // 
            // quest_time_type
            // 
            this.quest_time_type.Location = new System.Drawing.Point(24, 211);
            this.quest_time_type.Name = "quest_time_type";
            this.quest_time_type.Size = new System.Drawing.Size(100, 20);
            this.quest_time_type.TabIndex = 25;
            this.quest_time_type.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.quest_time_type.TextChanged += new System.EventHandler(this.quest_time_type_TextChanged);
            // 
            // label48
            // 
            this.label48.AutoSize = true;
            this.label48.Location = new System.Drawing.Point(21, 195);
            this.label48.Name = "label48";
            this.label48.Size = new System.Drawing.Size(60, 13);
            this.label48.TabIndex = 26;
            this.label48.Text = "Time Type:";
            this.label48.Click += new System.EventHandler(this.label48_Click);
            // 
            // quest_time_limit
            // 
            this.quest_time_limit.Location = new System.Drawing.Point(141, 211);
            this.quest_time_limit.Name = "quest_time_limit";
            this.quest_time_limit.Size = new System.Drawing.Size(105, 20);
            this.quest_time_limit.TabIndex = 27;
            this.quest_time_limit.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.quest_time_limit.TextChanged += new System.EventHandler(this.quest_time_limit_TextChanged);
            // 
            // label49
            // 
            this.label49.AutoSize = true;
            this.label49.Location = new System.Drawing.Point(138, 195);
            this.label49.Name = "label49";
            this.label49.Size = new System.Drawing.Size(57, 13);
            this.label49.TabIndex = 28;
            this.label49.Text = "Time Limit:";
            this.label49.Click += new System.EventHandler(this.label49_Click);
            // 
            // quest_obj_1_name_box
            // 
            this.quest_obj_1_name_box.FormattingEnabled = true;
            this.quest_obj_1_name_box.Location = new System.Drawing.Point(139, 41);
            this.quest_obj_1_name_box.Name = "quest_obj_1_name_box";
            this.quest_obj_1_name_box.Size = new System.Drawing.Size(105, 21);
            this.quest_obj_1_name_box.Sorted = true;
            this.quest_obj_1_name_box.TabIndex = 29;
            this.quest_obj_1_name_box.SelectedIndexChanged += new System.EventHandler(this.quest_obj_1_name_box_SelectedIndexChanged);
            // 
            // quest_obj_2_name_box
            // 
            this.quest_obj_2_name_box.FormattingEnabled = true;
            this.quest_obj_2_name_box.Location = new System.Drawing.Point(139, 82);
            this.quest_obj_2_name_box.Name = "quest_obj_2_name_box";
            this.quest_obj_2_name_box.Size = new System.Drawing.Size(107, 21);
            this.quest_obj_2_name_box.Sorted = true;
            this.quest_obj_2_name_box.TabIndex = 30;
            this.quest_obj_2_name_box.SelectedIndexChanged += new System.EventHandler(this.quest_obj_2_name_box_SelectedIndexChanged);
            // 
            // quest_obj_3_name_box
            // 
            this.quest_obj_3_name_box.FormattingEnabled = true;
            this.quest_obj_3_name_box.Location = new System.Drawing.Point(139, 126);
            this.quest_obj_3_name_box.Name = "quest_obj_3_name_box";
            this.quest_obj_3_name_box.Size = new System.Drawing.Size(107, 21);
            this.quest_obj_3_name_box.TabIndex = 12;
            this.quest_obj_3_name_box.SelectedIndexChanged += new System.EventHandler(this.quest_obj_3_name_box_SelectedIndexChanged);
            // 
            // quest_obj_4_name_box
            // 
            this.quest_obj_4_name_box.FormattingEnabled = true;
            this.quest_obj_4_name_box.Location = new System.Drawing.Point(139, 171);
            this.quest_obj_4_name_box.Name = "quest_obj_4_name_box";
            this.quest_obj_4_name_box.Size = new System.Drawing.Size(107, 21);
            this.quest_obj_4_name_box.TabIndex = 12;
            this.quest_obj_4_name_box.SelectedIndexChanged += new System.EventHandler(this.quest_obj_4_name_box_SelectedIndexChanged);
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.quest_obj_4_name_box);
            this.groupBox3.Controls.Add(this.quest_obj_3_name_box);
            this.groupBox3.Controls.Add(this.quest_obj_2_name_box);
            this.groupBox3.Controls.Add(this.quest_obj_1_name_box);
            this.groupBox3.Controls.Add(this.label49);
            this.groupBox3.Controls.Add(this.quest_time_limit);
            this.groupBox3.Controls.Add(this.label48);
            this.groupBox3.Controls.Add(this.quest_time_type);
            this.groupBox3.Controls.Add(this.button2);
            this.groupBox3.Controls.Add(this.label45);
            this.groupBox3.Controls.Add(this.label46);
            this.groupBox3.Controls.Add(this.quest_obj_4_amount_box);
            this.groupBox3.Controls.Add(this.label47);
            this.groupBox3.Controls.Add(this.quest_obj_4_id_box);
            this.groupBox3.Controls.Add(this.label42);
            this.groupBox3.Controls.Add(this.label43);
            this.groupBox3.Controls.Add(this.quest_obj_3_amount_box);
            this.groupBox3.Controls.Add(this.label44);
            this.groupBox3.Controls.Add(this.quest_obj_3_id_box);
            this.groupBox3.Controls.Add(this.label41);
            this.groupBox3.Controls.Add(this.label40);
            this.groupBox3.Controls.Add(this.label39);
            this.groupBox3.Controls.Add(this.quest_obj_2_amount_box);
            this.groupBox3.Controls.Add(this.label38);
            this.groupBox3.Controls.Add(this.quest_obj_1_amount_box);
            this.groupBox3.Controls.Add(this.label37);
            this.groupBox3.Controls.Add(this.quest_obj_2_id_box);
            this.groupBox3.Controls.Add(this.label36);
            this.groupBox3.Controls.Add(this.quest_obj_1_id_box);
            this.groupBox3.Location = new System.Drawing.Point(9, 245);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(328, 248);
            this.groupBox3.TabIndex = 17;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Objectives (Basic)";
            this.groupBox3.Enter += new System.EventHandler(this.groupBox3_Enter);
            // 
            // progBar1
            // 
            this.progBar1.Location = new System.Drawing.Point(18, 623);
            this.progBar1.Name = "progBar1";
            this.progBar1.Size = new System.Drawing.Size(319, 23);
            this.progBar1.TabIndex = 23;
            this.progBar1.Click += new System.EventHandler(this.progBar1_Click);
            // 
            // label53
            // 
            this.label53.AutoSize = true;
            this.label53.Location = new System.Drawing.Point(903, 660);
            this.label53.Name = "label53";
            this.label53.Size = new System.Drawing.Size(28, 13);
            this.label53.TabIndex = 20;
            this.label53.Text = "v1.7";
            this.label53.Click += new System.EventHandler(this.label53_Click);
            // 
            // exp_box
            // 
            this.exp_box.Location = new System.Drawing.Point(82, 22);
            this.exp_box.Name = "exp_box";
            this.exp_box.Size = new System.Drawing.Size(96, 20);
            this.exp_box.TabIndex = 3;
            this.exp_box.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.exp_box.TextChanged += new System.EventHandler(this.exp_box_TextChanged);
            // 
            // exp_lbl
            // 
            this.exp_lbl.AutoSize = true;
            this.exp_lbl.Location = new System.Drawing.Point(47, 25);
            this.exp_lbl.Name = "exp_lbl";
            this.exp_lbl.Size = new System.Drawing.Size(28, 13);
            this.exp_lbl.TabIndex = 4;
            this.exp_lbl.Text = "Exp:";
            this.exp_lbl.Click += new System.EventHandler(this.exp_lbl_Click);
            // 
            // jp_box
            // 
            this.jp_box.Location = new System.Drawing.Point(82, 48);
            this.jp_box.Name = "jp_box";
            this.jp_box.Size = new System.Drawing.Size(96, 20);
            this.jp_box.TabIndex = 5;
            this.jp_box.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.jp_box.TextChanged += new System.EventHandler(this.jp_box_TextChanged);
            // 
            // gold_box
            // 
            this.gold_box.Location = new System.Drawing.Point(82, 74);
            this.gold_box.Name = "gold_box";
            this.gold_box.Size = new System.Drawing.Size(96, 20);
            this.gold_box.TabIndex = 6;
            this.gold_box.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.gold_box.TextChanged += new System.EventHandler(this.gold_box_TextChanged);
            // 
            // holicpoint_box
            // 
            this.holicpoint_box.Location = new System.Drawing.Point(82, 100);
            this.holicpoint_box.Name = "holicpoint_box";
            this.holicpoint_box.Size = new System.Drawing.Size(96, 20);
            this.holicpoint_box.TabIndex = 7;
            this.holicpoint_box.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.holicpoint_box.TextChanged += new System.EventHandler(this.holicpoint_box_TextChanged);
            // 
            // jp_lbl
            // 
            this.jp_lbl.AutoSize = true;
            this.jp_lbl.Location = new System.Drawing.Point(52, 51);
            this.jp_lbl.Name = "jp_lbl";
            this.jp_lbl.Size = new System.Drawing.Size(21, 13);
            this.jp_lbl.TabIndex = 8;
            this.jp_lbl.Text = "Jp:";
            this.jp_lbl.Click += new System.EventHandler(this.jp_lbl_Click);
            // 
            // gold_lbl
            // 
            this.gold_lbl.AutoSize = true;
            this.gold_lbl.Location = new System.Drawing.Point(43, 81);
            this.gold_lbl.Name = "gold_lbl";
            this.gold_lbl.Size = new System.Drawing.Size(32, 13);
            this.gold_lbl.TabIndex = 9;
            this.gold_lbl.Text = "Gold:";
            this.gold_lbl.Click += new System.EventHandler(this.gold_lbl_Click);
            // 
            // holicpoint_lbl
            // 
            this.holicpoint_lbl.AutoSize = true;
            this.holicpoint_lbl.Location = new System.Drawing.Point(18, 103);
            this.holicpoint_lbl.Name = "holicpoint_lbl";
            this.holicpoint_lbl.Size = new System.Drawing.Size(57, 13);
            this.holicpoint_lbl.TabIndex = 10;
            this.holicpoint_lbl.Text = "Holicpoint:";
            this.holicpoint_lbl.Click += new System.EventHandler(this.holicpoint_lbl_Click);
            // 
            // rewards_basic_grpbox
            // 
            this.rewards_basic_grpbox.Controls.Add(this.holicpoint_lbl);
            this.rewards_basic_grpbox.Controls.Add(this.gold_lbl);
            this.rewards_basic_grpbox.Controls.Add(this.jp_lbl);
            this.rewards_basic_grpbox.Controls.Add(this.holicpoint_box);
            this.rewards_basic_grpbox.Controls.Add(this.gold_box);
            this.rewards_basic_grpbox.Controls.Add(this.jp_box);
            this.rewards_basic_grpbox.Controls.Add(this.exp_lbl);
            this.rewards_basic_grpbox.Controls.Add(this.exp_box);
            this.rewards_basic_grpbox.Location = new System.Drawing.Point(12, 115);
            this.rewards_basic_grpbox.Name = "rewards_basic_grpbox";
            this.rewards_basic_grpbox.Size = new System.Drawing.Size(188, 128);
            this.rewards_basic_grpbox.TabIndex = 8;
            this.rewards_basic_grpbox.TabStop = false;
            this.rewards_basic_grpbox.Text = "Rewards (Basic)";
            this.rewards_basic_grpbox.Enter += new System.EventHandler(this.rewards_basic_grpbox_Enter);
            // 
            // basic_info
            // 
            this.ClientSize = new System.Drawing.Size(1092, 683);
            this.Controls.Add(this.progBar1);
            this.Controls.Add(this.label53);
            this.Controls.Add(this.search_grpbox);
            this.Controls.Add(this.status);
            this.Controls.Add(this.rewards_basic_grpbox);
            this.Controls.Add(this.button1);
            this.Controls.Add(basic_info_grpbox);
            this.Controls.Add(this.groupBox4);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.groupBox3);
            this.Controls.Add(this.groupBox2);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "basic_info";
            this.Text = "NaviQuest ";
            this.Load += new System.EventHandler(this.basic_info_Load);
            this.search_grpbox.ResumeLayout(false);
            this.search_grpbox.PerformLayout();
            basic_info_grpbox.ResumeLayout(false);
            basic_info_grpbox.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.rewards_basic_grpbox.ResumeLayout(false);
            this.rewards_basic_grpbox.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        private void basic_info_Load(object sender, EventArgs e)
        {
            var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
            connectionString = config.ConnectionStrings.ConnectionStrings["conn"].ConnectionString.ToString();

            if (!string.IsNullOrEmpty(connectionString))
            {
                //Excute Preload Worker for Item List
                preload_worker = new BackgroundWorker();
                preload_worker.DoWork += preload_item_list;
                preload_worker.WorkerReportsProgress = true;
                preload_worker.ProgressChanged += (o, t) => { update_ui_txt(0, "PRELOADING"); };
                preload_worker.RunWorkerCompleted += (o, t) => { preload_worker.Dispose(); };
                preload_worker.RunWorkerAsync();

                //Execute Preload Worker for Monster List
                preload_worker = new BackgroundWorker();
                preload_worker.DoWork += preload_monster_list;
                preload_worker.WorkerReportsProgress = true;
                preload_worker.ProgressChanged += (o, t) => { update_ui_txt(0, "PRELOADING"); };
                preload_worker.RunWorkerCompleted += (o, t) => { preload_worker.Dispose(); };
                preload_worker.RunWorkerAsync();

                //Execute Preload Worker for Skill List
                preload_worker = new BackgroundWorker();
                preload_worker.DoWork += preload_skill_list;
                preload_worker.WorkerReportsProgress = true;
                preload_worker.ProgressChanged += (o, t) => { update_ui_txt(0, "PRELOADING"); };
                preload_worker.RunWorkerCompleted += (o, t) => { preload_end(); };
                preload_worker.RunWorkerAsync();
            }
            else
            {
                MessageBox.Show("You have not entered SQL Server Credentials, please do so in Settings.");
            }
        }

        private void preload_end()
        {
            //Preloading has ended, so dispose the worker
            preload_worker.Dispose();

            //Lists have been cloned || Preloading is finished.
            status.Text = "FINISHED PRELOADING";
        }



    public void load_quest_Click(object sender, EventArgs e)
    {
        //Check status.Text
        if (status.Text.ToString() == "COMPLETE")
        {

            MessageBox.Show("You need to enter a new name first.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
        else
        {
            perf_input_chk();
        }
     }

        public void form2_FormClosed(object sender, FormClosedEventArgs e)
        {
            status.Text = "";

            //Clear name box
            search_input_name.Text = "";

            bgw = new BackgroundWorker(); 
            bgw.DoWork += bgw_DoWork;
            bgw.RunWorkerCompleted += (o, t) => { update_ui_txt(2, ""); };
            bgw.WorkerReportsProgress = true;
            bgw.ProgressChanged += new ProgressChangedEventHandler(bgw_ProgressChanged);

            bgw.RunWorkerAsync();

        }

        private void bgw_DoWork(object sender, DoWorkEventArgs e)
        {
            perf_input_chk();
        }

        public void bgw_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            status.Text = e.UserState as String;
            int progBar1perc = e.ProgressPercentage;
            progBar1.Value = progBar1perc;
        }

        private void search_input_name_TextChanged(object sender, EventArgs e)
        {
            status.Text = "";
        }

        private void button4_Click(object sender, EventArgs e)
        {
            //We need to make sure Navi isn't preloading
            if (!preload_worker.IsBusy)
            {
                MessageBox.Show("Please select the desired Quest.", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Information);
                search_input_name.Text = "";
                Form3 form3 = new Form3();
                form3.FormClosed += new FormClosedEventHandler(form2_FormClosed);
                form3.ShowDialog();
            }
            else
            {
                MessageBox.Show("Please wait til Preloading has finished.", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }

        private void quest_obj_1_name_box_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (status.Text == "COMPLETE")
            {
                if (quest_type_internal_reference == "MONSTER")
                {
                    DataRow result = monster_list.Tables[0].AsEnumerable().Where(row => row.Field<string>("value") == quest_obj_1_name_box.Text).FirstOrDefault();
                    quest_obj_1_id_val = result.Field<int>("id");
                    quest_obj_1_id_box.Text = result.Field<int>("id").ToString();
                    quest_obj_1_name_val = result.Field<string>("value");
                }
                if (quest_type_internal_reference == "ITEM")
                {
                    DataRow result = item_list.Tables[0].AsEnumerable().Where(row => row.Field<string>("value") == quest_obj_1_name_box.Text).FirstOrDefault();
                    quest_obj_1_id_val = result.Field<int>("id");
                    quest_obj_1_id_box.Text = result.Field<int>("id").ToString();
                    quest_obj_1_name_val = result.Field<string>("value");
                }
                if (quest_type_internal_reference == "SKILL")
                {
                    DataRow result = skill_list.Tables[0].AsEnumerable().Where(row => row.Field<string>("value") == quest_obj_1_name_box.Text).FirstOrDefault();
                    quest_obj_1_id_val = result.Field<int>("id");
                    quest_obj_1_id_box.Text = result.Field<int>("id").ToString();
                    quest_obj_1_name_val = result.Field<string>("value");
                }
            }
        }

        private void quest_obj_2_name_box_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (status.Text == "COMPLETE")
            {
                if (quest_type_internal_reference == "MONSTER")
                {
                    DataRow result = monster_list.Tables[0].AsEnumerable().Where(row => row.Field<string>("value") == quest_obj_2_name_box.Text).FirstOrDefault();
                    quest_obj_2_id_val = result.Field<int>("id");
                    quest_obj_2_id_box.Text = result.Field<int>("id").ToString();
                    quest_obj_2_name_val = result.Field<string>("value");
                }
                if (quest_type_internal_reference == "ITEM")
                {
                    DataRow result = item_list.Tables[0].AsEnumerable().Where(row => row.Field<string>("value") == quest_obj_2_name_box.Text).FirstOrDefault();
                    quest_obj_2_id_val = result.Field<int>("id");
                    quest_obj_2_id_box.Text = result.Field<int>("id").ToString();
                    quest_obj_2_name_val = result.Field<string>("value");
                }
                if (quest_type_internal_reference == "SKILL")
                {
                    DataRow result = skill_list.Tables[0].AsEnumerable().Where(row => row.Field<string>("value") == quest_obj_2_name_box.Text).FirstOrDefault();
                    quest_obj_2_id_val = result.Field<int>("id");
                    quest_obj_2_id_box.Text = result.Field<int>("id").ToString();
                    quest_obj_2_name_val = result.Field<string>("value");
                }
            }
        }

        private void quest_obj_3_name_box_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (status.Text == "COMPLETE")
            {
                if (quest_type_internal_reference == "MONSTER")
                {
                    DataRow result = monster_list.Tables[0].AsEnumerable().Where(row => row.Field<string>("value") == quest_obj_3_name_box.Text).FirstOrDefault();
                    quest_obj_3_id_val = result.Field<int>("id");
                    quest_obj_3_id_box.Text = result.Field<int>("id").ToString();
                    quest_obj_3_name_val = result.Field<string>("value");
                }
                if (quest_type_internal_reference == "ITEM")
                {
                    DataRow result = item_list.Tables[0].AsEnumerable().Where(row => row.Field<string>("value") == quest_obj_3_name_box.Text).FirstOrDefault();
                    quest_obj_3_id_val = result.Field<int>("id");
                    quest_obj_3_id_box.Text = result.Field<int>("id").ToString();
                    quest_obj_3_name_val = result.Field<string>("value");
                }
                if (quest_type_internal_reference == "SKILL")
                {
                    DataRow result = skill_list.Tables[0].AsEnumerable().Where(row => row.Field<string>("value") == quest_obj_3_name_box.Text).FirstOrDefault();
                    quest_obj_3_id_val = result.Field<int>("id");
                    quest_obj_3_id_box.Text = result.Field<int>("id").ToString();
                    quest_obj_3_name_val = result.Field<string>("value");
                }
            }
        }

        private void quest_def_rew_name_box_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (status.Text == "COMPLETE")
            {
                DataRow result = item_list3.Tables[0].AsEnumerable().Where(row => row.Field<string>("value") == quest_def_rew_name_box.Text).FirstOrDefault();
                quest_def_rew_id_val = result.Field<int>("id");
                quest_def_rew_id_box.Text = quest_def_rew_id_val.ToString();
                quest_def_rew_name_val = result.Field<string>("value");
                quest_def_rew_name_box.Text = quest_def_rew_name_val;
            }
        }

        private void tabPage2_Click(object sender, EventArgs e)
        {

        }

        private void status_Click(object sender, EventArgs e)
        {

        }

        private void label51_Click(object sender, EventArgs e)
        {

        }

        private void basic_info_grpbox_Enter(object sender, EventArgs e)
        {

        }

        private void quest_time_type_TextChanged(object sender, EventArgs e)
        {

        }

        private void start_npc_y_TextChanged(object sender, EventArgs e)
        {

        }

        private void end_npc_name_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_obj_3_id_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void start_npc_2_id_TextChanged(object sender, EventArgs e)
        {

        }

        private void label34_Click(object sender, EventArgs e)
        {

        }

        private void progBar1_Click(object sender, EventArgs e)
        {

        }

        private void start_npc_lua_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_max_lv_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void start_npc_name_TextChanged(object sender, EventArgs e)
        {

        }

        private void start_desc_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_obj_3_amount_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void start_npc_3_lua_TextChanged(object sender, EventArgs e)
        {

        }

        private void label54_Click(object sender, EventArgs e)
        {

        }

        private void holicpoint_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void label7_Click(object sender, EventArgs e)
        {

        }

        private void gold_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void label17_Click(object sender, EventArgs e)
        {

        }

        private void quest_id_TextChanged(object sender, EventArgs e)
        {

        }

        private void label9_Click(object sender, EventArgs e)
        {

        }

        private void label46_Click(object sender, EventArgs e)
        {

        }

        private void label23_Click(object sender, EventArgs e)
        {

        }

        private void start_npc_2_lua_TextChanged(object sender, EventArgs e)
        {

        }

        private void label13_Click(object sender, EventArgs e)
        {

        }

        private void label43_Click(object sender, EventArgs e)
        {

        }

        private void start_npc_3_title_TextChanged(object sender, EventArgs e)
        {

        }

        private void prog_desc_id_TextChanged(object sender, EventArgs e)
        {

        }

        private void exp_lbl_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void start_npc_2_x_TextChanged(object sender, EventArgs e)
        {

        }

        private void start_npc_2_y_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_time_limit_TextChanged(object sender, EventArgs e)
        {

        }

        private void label15_Click(object sender, EventArgs e)
        {

        }

        private void quest_id_lbl_Click(object sender, EventArgs e)
        {

        }

        private void label45_Click(object sender, EventArgs e)
        {

        }

        private void label21_Click(object sender, EventArgs e)
        {

        }

        private void label24_Click(object sender, EventArgs e)
        {

        }

        private void label11_Click(object sender, EventArgs e)
        {

        }

        private void quest_type_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label41_Click(object sender, EventArgs e)
        {

        }

        private void label31_Click(object sender, EventArgs e)
        {

        }

        private void tabPage1_Click(object sender, EventArgs e)
        {

        }

        private void label36_Click(object sender, EventArgs e)
        {

        }

        private void quest_obj_2_amount_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void start_npc_id_TextChanged(object sender, EventArgs e)
        {

        }

        private void label29_Click(object sender, EventArgs e)
        {

        }

        private void label19_Click(object sender, EventArgs e)
        {

        }

        private void quest_min_jlv_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_obj_1_id_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void level_req_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_name_lbl_Click(object sender, EventArgs e)
        {

        }

        private void label26_Click(object sender, EventArgs e)
        {

        }

        private void label32_Click(object sender, EventArgs e)
        {

        }

        private void quest_obj_2_id_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        private void label52_Click(object sender, EventArgs e)
        {

        }

        private void label40_Click(object sender, EventArgs e)
        {

        }

        private void start_desc_id_TextChanged(object sender, EventArgs e)
        {

        }

        private void label37_Click(object sender, EventArgs e)
        {

        }

        private void start_npc_2_name_TextChanged(object sender, EventArgs e)
        {

        }

        private void start_npc_x_TextChanged(object sender, EventArgs e)
        {

        }

        private void groupBox3_Enter(object sender, EventArgs e)
        {

        }

        private void groupBox2_Enter(object sender, EventArgs e)
        {

        }

        private void groupBox1_Enter(object sender, EventArgs e)
        {

        }

        private void gold_lbl_Click(object sender, EventArgs e)
        {

        }

        private void label5_Click(object sender, EventArgs e)
        {

        }

        private void label30_Click(object sender, EventArgs e)
        {

        }

        private void label8_Click(object sender, EventArgs e)
        {

        }

        private void groupBox4_Enter(object sender, EventArgs e)
        {

        }

        private void label50_Click(object sender, EventArgs e)
        {

        }

        private void quest_def_rew_amount_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_def_rew_id_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void holicpoint_lbl_Click(object sender, EventArgs e)
        {

        }

        private void end_npc_lua_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void label38_Click(object sender, EventArgs e)
        {

        }

        private void start_npc_3_x_TextChanged(object sender, EventArgs e)
        {

        }

        private void start_npc_3_y_TextChanged(object sender, EventArgs e)
        {

        }

        private void label14_Click(object sender, EventArgs e)
        {

        }

        private void toolTip1_Popup(object sender, PopupEventArgs e)
        {

        }

        private void label44_Click(object sender, EventArgs e)
        {

        }

        private void start_npc_3_id_TextChanged(object sender, EventArgs e)
        {

        }

        private void search_grpbox_Enter(object sender, EventArgs e)
        {

        }

        private void label27_Click(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {

        }

        private void exp_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_class_req_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void label16_Click(object sender, EventArgs e)
        {

        }

        private void start_npc_3_name_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_obj_1_amount_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void label22_Click(object sender, EventArgs e)
        {

        }

        private void label6_Click(object sender, EventArgs e)
        {

        }

        private void label12_Click(object sender, EventArgs e)
        {

        }

        private void label42_Click(object sender, EventArgs e)
        {

        }

        private void start_npc_2_title_TextChanged(object sender, EventArgs e)
        {

        }

        private void label49_Click(object sender, EventArgs e)
        {

        }

        private void jp_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void end_npc_x_TextChanged(object sender, EventArgs e)
        {

        }

        private void end_npc_y_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_obj_4_amount_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_name_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void end_desc_id_TextChanged(object sender, EventArgs e)
        {

        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void rewards_basic_grpbox_Enter(object sender, EventArgs e)
        {

        }

        private void label4_Click(object sender, EventArgs e)
        {

        }

        private void label20_Click(object sender, EventArgs e)
        {

        }

        private void label10_Click(object sender, EventArgs e)
        {

        }

        private void label39_Click(object sender, EventArgs e)
        {

        }

        private void label33_Click(object sender, EventArgs e)
        {

        }

        private void label47_Click(object sender, EventArgs e)
        {

        }

        private void label25_Click(object sender, EventArgs e)
        {

        }

        private void end_npc_id_TextChanged(object sender, EventArgs e)
        {

        }

        private void label53_Click(object sender, EventArgs e)
        {

        }

        private void prog_desc_TextChanged(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void label28_Click(object sender, EventArgs e)
        {

        }

        private void quest_obj_4_id_box_TextChanged(object sender, EventArgs e)
        {

        }

        private void label18_Click(object sender, EventArgs e)
        {

        }

        private void end_npc_giver_title_TextChanged(object sender, EventArgs e)
        {

        }

        private void label48_Click(object sender, EventArgs e)
        {

        }

        private void jp_lbl_Click(object sender, EventArgs e)
        {

        }

        private void label35_Click(object sender, EventArgs e)
        {

        }

        private void start_npc_giver_title_TextChanged(object sender, EventArgs e)
        {

        }

        private void quest_obj_4_name_box_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void end_desc_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
